/**
 * Created by anzhen on 2017-6-13.
 */
class Regex_ {
    public static void main(String[] args) {
        println 'Groovy' =~ 'Groovy'
        println 'Groovy' =~ 'oo'
        println 'Groovy' ==~ 'Groovy'
        println 'Groovy' ==~ 'oo'
        println 'Groovy' =~ '∧G'
        println 'Groovy' =~ 'G$'
        println 'Groovy' =~ 'Gro*vy'
        println 'Groovy'=~ 'Gro{2}vy'

    }
}
